CJK Windows: Silence gtk_style_context_set_state() warnings
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 8 Jan 2016 10:44:24 +0000 (18:44 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 8 Jan 2016 15:37:31 +0000 (23:37 +0800)
commitd07f00d98f2ae82a927d364a8f140ec881c2dcfe
tree3c1fd6d84d21deb907a3ba961880237b5413686e
parent4eb333801b517c58b896d82dcd129768e76d0e0e
CJK Windows: Silence gtk_style_context_set_state() warnings

We need to update calls to gtk_style_context_set_state() in
gtkimcontextime.c, so that the state passed into that function would be in
line with what GtkStyleContext expects, due to updates in the CSS
machinery, as outlined in this link[1], which is based on information in
in Matthias' blog[2].

Doing so will silence the gtk_style_context_set_state() warnings, which is
emitted when a widget uses gtkimcontext on Windows with CJK IME, which will
in turn call gtkimcontextime.

[1]: http://feaneron.com/2016/01/04/quick-guide-to-port-an-app-for-gtk-3-20/
[2]: https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/

https://bugzilla.gnome.org/show_bug.cgi?id=760314
modules/input/gtkimcontextime.c